package com.bdqn.sj;


import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestSpring {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("application.xml");
        HelloSpring helloSpring = (HelloSpring) context.getBean("HelloSpring1");
        helloSpring.print();
        HelloSpring helloSpring1 = (HelloSpring) context.getBean("HelloSpring");
        helloSpring1.print();
    }
}
